import axios from 'axios';

window.onload = function () {
    console.log('正在重定向');
    redirect.run();
};


let redirect = (function(){
    /*
    * 用于重定向
    * */
    let url = 'redirect';
    let run = function () {
        axios.post(url).then(function (res) {
            location.href=res.data;
            // console.log(res);
        });
    };

    return {
        run:run
    }
})();